<?php
namespace app\index\controller;

use think\Controller;
use think\facade\Cookie;

/**
 * Created by liuyang.
 * Class Index
 * @package app\index\controller
 */
class Index extends Controller
{


    public function index()
    {
        return $this->fetch('index/index');
        //return $this->fetch('index/login');
    }
    public function reg()
    {
        return $this->fetch();
    }

    public function logout()
    {
        Cookie::delete('userid');
        Cookie::delete('username');
        Cookie::delete('name');
        $this->redirect('index/index/index');
    }

    public function test(){
        test11111();
    }





}
